package com.admission.model;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.admission.listener.AuditableEntity;
import com.annotation.AnElement;
//高考省份分数线
@Entity
@Table(name = "college_province")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class CollegeProvince extends AuditableEntity{
	@AnElement
	private String province="";  //学生所在省份
	@AnElement
	private String content="";  //对应省份录取情况
	private ProvinceForm provinceForm;
	
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	 @Lob
	 @Basic(fetch = FetchType.LAZY)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@ManyToOne
	@JoinColumn(name="pro_id")
	public ProvinceForm getProvinceForm() {
		return provinceForm;
	}
	public void setProvinceForm(ProvinceForm provinceForm) {
		this.provinceForm = provinceForm;
	}
}
